<div class="bs-example">
	<div class="menu-top">
		<div class="title-note">
		<h4> <i class="fa fa-user">&nbsp;</i><?php echo __('Tài khoản quản trị hệ thống'); ?></h4>
		
		</div>
		<div class="option-action">
			<a href="users/add"><button type="button" class="btn btn-primary btn-sm">Thêm mới</button></a>&nbsp;
			<!--a style="padding-right:5px;" href="/users/add"><button type="button" class="btn btn-danger btn-sm">Block all</button></a-->
		</div>
	</div>
	
	<table  class="table table-striped table-bordered">
	<tr>		
			<th>STT</th>
			<th>Họ và tên</th>
			<th>Tài khoản</th>
			<th>Nhóm quyền</th>			
			
			<!--th>Trạng thái</th-->			
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
	$n=1;
	foreach ($users as $user): ?>
	<tr>
		
		<td><?php echo $n;?></td>
		<td><?php echo h($user['User']['fullName']); ?>&nbsp;</td>		
		<td><?php echo h($user['User']['username']); ?>&nbsp;</td>
		
		<td>
                    <?php echo h($user['Group']['name']); ?>&nbsp;
                    <?php //echo $this->Html->link($user['Group']['name'], array('controller' => 'groups', 'action' => 'view', $user['Group']['id'])); ?>
		</td>
		<!--td><?php echo h($user['User']['mobile_no']); ?>&nbsp;</td-->
		<td class="actions">
			 <?php //echo $this->Html->link(__(''), array('action' => 'view', $user['User']['id']),array('class'=>'fa fa-eye')); ?>
			<?php echo $this->Html->link(__(''), array('action' => 'edit', $user['User']['id']),array('class'=>'fa fa-pencil-square-o')); ?>
			<?php echo $this->Form->postLink(__(''), 
					array('action' => 'delete', $user['User']['id']),
					array('class'=>'fa  fa-trash-o'), 
					__('Bạn muốn xóa tài khoản '.$user['User']['username']."?", 
					$user['User']['id'])); ?>
		
		</td>
	</tr>
<?php $n++;endforeach; ?>
	</table>
</div>

